﻿using DFGK_WMS.Model.DTO;
using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.IRepository
{
    public interface ITTransferBinOrderDetailRepository:IBaseRepository<TTransferBinOrderDetail>
    {
        /// <summary>
        /// 添加移库单明细
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        bool AddTransferBinOrderDetails(TTransferBinOrderDetail obj);
        /// <summary>
        /// 查询所有移库单明细
        /// </summary>
        /// <param name="orderId">移库单id</param>
        /// <param name="kid"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<TTransferBinOrderDetail> GetTransferBinOrderDetailsList(int orderId, int pageIndex, int pageSize, out int totalCount);

        /// <summary>
        /// 删除移库单明细
        /// </summary>
        /// <param name="tid"></param>
        /// <returns></returns>
        bool DelTransferBinOrderDetails(int tid);

        /// <summary>
        /// 修改移库单明细
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        bool UpdateTransferBinOrderDetails(TTransferBinOrderDetail t);
    }
}
